package com.example;

import com.example.test.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName Main
 * @Description TODO
 * @Author H.
 * @Date 2023/4/23 19:57
 * @Version 1.0
 */

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("com.example");
        Person person = (Person) context.getBean("person");
        System.out.println(person.getUser());
    }
}
